package com.power.bank.member.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.power.bank.member.domain.PowerBank;
import com.power.bank.member.mapper.PowerBankMapper;
import com.power.bank.member.service.IPowerBankService;
/**
 * memebrService业务层处理
 * 
 * @author power
 * @date 2024-12-18
 */
@Service
public class PowerBankServiceImpl implements IPowerBankService 
{
    @Autowired
    private PowerBankMapper powerBankMapper;

    /**
     * 查询memebr
     * 
     * @param id memebr主键
     * @return memebr
     */
    @Override
    public PowerBank selectPowerBankById(Long id)
    {
        return powerBankMapper.selectPowerBankById(id);
    }

    /**
     * 查询memebr列表
     * 
     * @param powerBank memebr
     * @return memebr
     */
    @Override
    public List<PowerBank> selectPowerBankList(PowerBank powerBank)
    {
        return powerBankMapper.selectPowerBankList(powerBank);
    }

    /**
     * 新增memebr
     * 
     * @param powerBank memebr
     * @return 结果
     */
    @Override
    public int insertPowerBank(PowerBank powerBank)
    {
        return powerBankMapper.insertPowerBank(powerBank);
    }

    /**
     * 修改memebr
     * 
     * @param powerBank memebr
     * @return 结果
     */
    @Override
    public int updatePowerBank(PowerBank powerBank)
    {
        return powerBankMapper.updatePowerBank(powerBank);
    }

    /**
     * 批量删除memebr
     * 
     * @param ids 需要删除的memebr主键
     * @return 结果
     */
    @Override
    public int deletePowerBankByIds(Long[] ids)
    {
        return powerBankMapper.deletePowerBankByIds(ids);
    }

    /**
     * 删除memebr信息
     * 
     * @param id memebr主键
     * @return 结果
     */
    @Override
    public int deletePowerBankById(Long id)
    {
        return powerBankMapper.deletePowerBankById(id);
    }
}
